<?php

class FavoriteResource extends BaseResource
{
    public function delete()
    {
        $fav = Favorite::$objects->get('status_id = ?', 'user_id = ?',
                                       array($this->params['id'], $this->user->id));
        $fav->delete();
        $this->responds_deleted(204);
    }
}

?>